package com.example.siyun.service.productcategroyservice;

import com.example.siyun.pojo.JsProductCategroy;
import com.example.siyun.pojo.TreeNodes;

import java.util.List;
/*
 * 商品列表
 * @author：刘宝龙
 *@Date: 2022-10-12
 * */

public interface ProductCategroyService {
    /**
     * 树
     * @param parentId
     * @return
     */
    public List<TreeNodes> getpid(int parentId);

    /**
     * 修改节点
     * @param treeNodes
     * @throws Exception
     */
    public void updateTreeName(TreeNodes treeNodes) throws Exception;

    /**
     * 删除节点
     * @param categrayId
     * @throws Exception
     */
    public void delTreeNodes(Integer categrayId) throws Exception;

    /**
     * 添加节点
     * @param jsProductCategroy
     * @throws Exception
     */
    public void addTreeNodes(JsProductCategroy jsProductCategroy) throws Exception;

}
